package com.aspose.cells;

import java.util.HashMap;

class zafg {
   private com.aspose.cells.b.a.d.zo a;
   private Encoding b = Encoding.getUTF8();
   private int c = 12;
   private HashMap d = new HashMap();

   public void a(Encoding var1) {
      this.b = var1;
   }

   public int a() {
      return this.c;
   }

   public void a(int var1) {
      this.c = var1;
   }

   public HashMap b() {
      return this.d;
   }

   zafg(com.aspose.cells.b.a.d.zm var1, Encoding var2) throws Exception {
      this.b = var2;
      this.a = this.a(var1, this.b);
   }

   zafg(String var1, Encoding var2) throws Exception {
      com.aspose.cells.b.a.d.zc.b(com.aspose.cells.b.a.d.zk.e(var1));
      com.aspose.cells.b.a.d.ze var3 = new com.aspose.cells.b.a.d.ze(var1, 2);
      this.b = var2;
      this.a = this.a(var3, this.b);
   }

   void a(String var1) throws Exception {
      this.a.a(var1);
   }

   void a(boolean var1, boolean var2) throws Exception {
      if (var1) {
         this.a("<html xmlns:v=\"urn:schemas-microsoft-com:vml\"");
         this.b("xmlns:o=\"urn:schemas-microsoft-com:office:office\"");
         this.b("xmlns:x=\"urn:schemas-microsoft-com:office:excel\"");
         this.b("xmlns=\"http://www.w3.org/TR/REC-html40\"");
         if (var2) {
            this.a.a("dir=RTL");
         }

         this.a.a(">");
      } else {
         this.b("<html");
         if (var2) {
            this.a.a("dir=RTL");
         }

         this.a.a(">");
      }

   }

   void c() throws Exception {
      this.b("</html>");
   }

   void d() throws Exception {
      this.b("<head>");
   }

   void e() throws Exception {
      this.b("</head>");
   }

   void f() throws Exception {
      this.a.b();
   }

   void b(String var1) throws Exception {
      this.a.a("\n" + var1);
   }

   void g() throws Exception {
      this.a.a("\n");
   }

   void h() throws Exception {
      this.a.c();
   }

   void a(boolean var1) throws Exception {
      String var2 = "";
      if (var1) {
         this.b("<meta name=\"Excel Workbook Frameset\">");
      }

      this.b("<meta http-equiv=Content-Type content=\"text/html; charset=" + this.b.b() + "\">");
      this.b("<meta name=ProgId content=Excel.Sheet>");
      this.b("<meta name=Generator content=\"Aspose.Cell " + var2 + "\">");
   }

   private com.aspose.cells.b.a.d.zo a(com.aspose.cells.b.a.d.zm var1, Encoding var2) throws Exception {
      return new com.aspose.cells.b.a.d.zo(var1, var2);
   }
}
